geom_histogram
{GGPLOT2}
Generates a histogram
labs
{GGPLOT2}
Customise labels in GGPLOT2
str
{utils}
Get the structure of an R object
head
{utils}
Show first 5 rows of a data frame
c
{base}
Combine values/vectors into a vector
theme_classic
{GGPLOT2}
A minimalistic theme with no gridlines
predict
{stats}
Predict Probability
arrange
{dplyr}
Sort values of data frame according to a variable/combination of varaibles
coord_flip
{GGPLOT2}
Flip the x and y axes of a graph
table
{base}
Obtain frequency table of a variable/cross-tabulation of two variables
element_text
{GGPLOT2}
Customise text in GGPLOT2
aes
{GGPLOT2}
Construct aesthetic mapping of a ggplot graph
read.csv
{utils}
Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters
quantile
{stats}
Obtain empirical quantiles of a vector
geom_smooth
{GGPLOT2}
Generates a smoothed conditional means curve / line
ggplot
{GGPLOT2}
Create a ggplot graph
geom_point
{GGPLOT2}
Generates a scatter plot
summary
{base}
Obtain summary statistics or detailed regression output
attach
{base}
Attach Set of R Objects to Search Path
library
{base}
Load an R package
order
{base}
Get indexes that will sort a vector
ylab
{GGPLOT2}
Label the y axis (ggplot)
mutate
{dplyr}
Modify/create a column in a data frame
data.frame
{base}
Create a data.frame from vectors
stargazer
{stargazer}
Create a regression output table
class
{base}
Retrieve class of an R object
ggtitle
{GGPLOT2}
Generates a title for a ggplot graph
confint
{stats}
Calculate confidence Intervals for Model Parameters
subset
{base}
Return subsets of vectors, matrices or data frames which meet conditions.
group_by
{dplyr}
Group tibble/data.frame by a factor variable. All further tidyverse operations are performed group-wise
filter
{dplyr}
Filter out rows of a data frame according to logical vector
ls
{base}
Return a vector of character strings giving the names of the objects in the specified environment
mean
{base}
Get mean of a vector
xlab
{GGPLOT2}
Label the x axis (ggplot)
setwd
{base}
Set Working Directory
dim
{base}
Get dimensions of a data frame
ifelse
{base}
Return a or b depending on the value of test
colnames
{base}
Retrieve column names of a data frame
sum
{base}
Get sum of numeric values or a vector
cor
{stats}
Calculate Correlation Matrix
with
{base}
evaluate expression in the context of a data frame
geom_hline
{GGPLOT2}
Add a horizontal line in GGPLOT2
select
{dplyr}
Select columns from a tibble/data frame
rbind
{base}
Combine R objects by rows
lm
{base}
Fit a linear model
print
{base}
Print object to the console
reorder
{stats}
Reorder Levels of Factor based on the values of a second variable, usually numeric.
scale_colour_manual
{GGPLOT2}
Create your own discrete scale
rm
{base}
Remove objects
which
{base}
return indexes of TRUE entries of a logical vector
summarise
{dplyr}
collapse the dataset to a summary statistic. Usually used with group_by()
geom_vline
{GGPLOT2}
Draws a vertical line
names
{base}
Retrieve names of a list/vector
theme
{GGPLOT2}
Set theme for GGPLOT2
as.factor
{base}
Coerce a vector to factor
The end!